#include <stdio.h>
int main()
{
	int sum1=0,sum2=0;
    float sum3=0.0;
	for(int i=1;i<=100;i++)
	{
		sum1=sum1+i;
		if(i<=50)
		{
			sum2=sum2+i*i;
		}
		if(i<=10)
		{
			sum3=sum3+1.0/i;
		}
		printf("%d|%d|%f\n",sum1,sum2,sum3);
	}
	printf("Sum=%f\n",sum1+sum2+sum3);
	return 0;
}